#ifndef __CAPTURESRH__
#define __CAPTURESRH__

#define TXSVR

#define UM_CONNECT (EM_USER+1)
#define UM_RENDER_START (EM_USER+2)	
#define UM_RENDER_STOP (EM_USER+3)	
#define UM_CAPTURE_START (EM_USER+4)
#define UM_CAPTURE_STOP (EM_USER+5)
#define UM_ADJ_TIMER (EM_USER+6)


#define PKT_BUF_SIZE (150*1024)
#define PIXEL_BYTE 4
#define SHOT_W 720
#define SHOT_H 1280
#define CAP_PERIOD 60

#define PKT_HDR_SIZE 4


typedef struct {
	int imgw;
	int imgh;
	int pixel_byte;
} capconfig_t;

extern CGetPutBuf *gCapImgBuf;

void start_cap_thread(int width, int height, int pixel_byte);
void stop_cap_thread(void);
void start_capture_samp(void);
void stop_capture_samp(void);

void adjust_cap_timer(int break_time);


#endif
